package com.work.framework.pojo;

import java.math.BigDecimal;

public class Balance {

  private Integer id;         //余额编号
  private Integer uid;        //用户编号
  private BigDecimal amount; //金额



  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }


  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(double amount) {
    this.amount = new BigDecimal(amount);
  }

  @Override
  public String toString() {
    return "Balance{" +
            "id=" + id +
            ", uid=" + uid +
            ", amount=" + amount +
            '}';
  }
}
